package dtn.supports;

public class Settings {
	public static boolean IsAutoUpdate = false;
	public static int TimeAutoUpdate = 1;
	public static int Max_TinMoi = 20;
	public static int Max_KhoaHoc = 20;
	public static int Max_ViecLam = 20;

	public static void loadSettings() {
		DatabaseHelper.Max.put(DatabaseHelper.Table_TinMoi, Max_TinMoi);
		DatabaseHelper.Max.put(DatabaseHelper.Table_KhoaHoc, Max_KhoaHoc);
		DatabaseHelper.Max.put(DatabaseHelper.Table_ViecLam, Max_ViecLam);
	}

	public static void setSettings(boolean isAutoUpdate, int timeAutoUpdate,
			int max_tinmoi, int max_khoahoc, int max_vieclam) {
		IsAutoUpdate = isAutoUpdate;
		TimeAutoUpdate = timeAutoUpdate;
		Max_TinMoi = max_tinmoi;
		Max_KhoaHoc = max_khoahoc;
		Max_ViecLam = max_vieclam;
	}
}
